The .spell
file is the cornerstone of the Magi ecosystem, currently functioning as a simple mechanism for defining and executing command macros. However, the roadmap for .spell
files envisions their evolution into a robust, modular, and self-contained scripting format, while maintaining their lightweight nature. This document outlines the current functionality and future plans, including features like bundling artifacts, procedural sigil confirmation, and API integrations.
.spell
files are currently lightweight command macros used to automate CLI tasks.A .spell
file is plain text, designed for simplicity and usability.
A concise explanation of the spell’s purpose.
plaintext
# Description: A spell to archive files
Commands:
A series of commands executed when the spell is cast.
plaintext
# Commands:
tar -czvf {{archive_name}}.tar.gz {{directory}}
Parameters:
Placeholders in commands that can be dynamically replaced at runtime.
plaintext
# Parameters:
# directory: The target directory to archive
# archive_name: The name of the output archive
Alias:
plaintext
# Alias: archive
cast
command, allowing users to provide parameters interactively or through direct input.Casting with Prompt:
bash
cast ponder archive
Prompts the user to enter the required parameters.
Direct Invocation:
bash
cast ponder archive --directory=docs --archive_name=docs_backup
.spell
files are simple macros focusing on lightweight task automation..spell
files to sync seamlessly with Magi.Spells and Magi.Chamber..spell
files with non-code artifacts, such as templates, configuration files, or static assets required for execution..spell
file, ensuring portability and reproducibility.Example:
plaintext
# Artifacts:
# /templates/report_template.md
# /configs/default_config.json
.spell
files evolve into structured, YAML-based bundles for better readability and flexibility..spell
files will serve as portable bundles carrying:Example:
yaml
name: ArchiveDirectory
alias: archive
description: A spell to archive files in a directory
version: 1.0.0
parameters:
directory:
type: string
required: true
archive_name:
type: string
required: true
commands:
- tar -czvf {{archive_name}}.tar.gz {{directory}}
artifacts:
- templates/report_template.md
- configs/default_config.json
.spell
files become central to the Magi ecosystem, supporting advanced features like browser-based execution, API calls, and monetization..spell
file is associated with a procedurally generated sigil.Example Workflow:
- Users submit a .spell
file to the API for casting.
- The API generates and returns a unique sigil that confirms the spell's validity and execution status.
Introduce levels to differentiate spells by maturity and execution environment:
API Casting:
.spell
logic as APIs, allowing third-party systems to invoke spells programmatically..spell
files enable monetization through tiered access and premium features.A polished UI simplifies parameter input and displays results interactively.
Subscription Model:
Contribute to Magi.Spells by developing new .spell
files and submitting them for review.
Experiment:
Test the current macro capabilities of .spell
files and provide feedback.
Innovate:
.spell
files by proposing features and use cases.This roadmap ensures that .spell
files will evolve from basic command macros to a cornerstone of the Magi ecosystem, enabling automation, collaboration, and monetization in a modular and secure framework.